package com.jet.stock.inner;

import com.jet.core.result.ResultJson;
import com.jet.stock.service.StockSkuService;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author dcl
 * @since 2025/2/21 14:58
 */
@RestController
@RequestMapping("/inner/stock-sku")
public class InnerStockSkuController {

    private final StockSkuService stockSkuService;

    public InnerStockSkuController(StockSkuService stockSkuService) {
        this.stockSkuService = stockSkuService;
    }

    @DeleteMapping
    public ResultJson<Void> deleteBySkuId(@RequestParam String skuId) {
        stockSkuService.deleteBySkuId(skuId);
        return ResultJson.ok();
    }
}
